export default {
  methods: {
    loaded (footer) {
      // clearInterval(foo)
      let tr = document.createElement('tr')
      tr.className = 'ant-table-row ant-table-row-level-0'
      tr.dataset.rowKey = 'footer'
      footer.forEach((text) => {
        let td = document.createElement('td')
        td.innerHTML = text
        tr.appendChild(td)
      })
      setTimeout(() => {
        let tbody = document.getElementsByTagName('tbody')[0]
        if ('footer' !== tbody.lastElementChild.dataset.rowKey) {
          tbody.appendChild(tr)
        } else {
          tbody.removeChild(tbody.lastElementChild)
          tbody.appendChild(tr)
        }
      }, 500);


    },
  }
}